//
// Created by liushuai on 2021/2/27.
//

#include "constructRectangle.h"

vector<int> constructRectangle(int area) {
<<<<<<< HEAD:cxx/algorithm/src/constructRectangle.cc
    int sqrt_value = std::sqrt(area);
    while (area % sqrt_value != 0)
        sqrt_value--;
    return {area / sqrt_value, sqrt_value};
=======
  int sqrt_value = std::sqrt(area);
  while (area % sqrt_value != 0) sqrt_value--;
  return {area / sqrt_value, sqrt_value};
>>>>>>> dev:cxx/algorithm/common/src/constructRectangle.cc
}